package edu.study.user.api;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.study.api.common.dto.BaseRespDto;
import edu.study.api.common.dto.RespDto;
import edu.study.user.api.dto.DepartmentUserDto;
import edu.study.user.api.req.departmentuser.DepartmentUserReq;
import edu.study.user.api.req.departmentuser.QueryDepartmentUserReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 1.要么没有入参，要么封装成req对象
 * 2.返回类型：BaseRespDto RespDto<T> PageRespDto<T> 三种
 */
@RequestMapping("/api/user/departmentUserApi")
@Api(value = "/api/user/departmentUserApi", tags = { "部门用户相关接口-1.0" })
public interface DepartmentUserApi {
	
	@ApiOperation(value = "新增部门用户")
    @RequestMapping(value = "addDepartmentUser", method = {RequestMethod.POST})
    BaseRespDto addDepartmentUser(@RequestBody DepartmentUserReq req);
    
    @ApiOperation(value = "删除部门用户")
    @RequestMapping(value = "deleteDepartmentUser", method = {RequestMethod.POST})
    BaseRespDto deleteDepartmentUser(@RequestBody DepartmentUserReq req);
    
    @ApiOperation(value = "修改部门用户")
    @RequestMapping(value = "modifyDepartmentUser", method = {RequestMethod.POST})
    BaseRespDto modifyDepartmentUser(@RequestBody DepartmentUserReq req);
	
    @ApiOperation(value = "查询部门用户列表")
    @RequestMapping(value = "queryDepartmentUserList", method = {RequestMethod.POST})
    RespDto<List<DepartmentUserDto>> queryDepartmentUserList(@RequestBody QueryDepartmentUserReq req);
}
